<template>
	<uni-header title="收益" :backIcon="false"></uni-header>
	<view class="header">
		<image class="bg" src="../../static/shouyi-icon.png" mode=""></image>
		<view class="content" style="height: 212rpx;">
			<text class="income" style="margin-bottom: 20rpx;">算力收益(B)</text>
			<text class="income-power" >00.00</text>
			
		</view>
		<view class="content">
			<text class="income">邀请收益(B)</text>
			<text class="income-power">00.00</text>
		</view>
	</view>
	<text class="title">明细</text>
	<view class="list">
	<!-- 	<view class="item" v-for="item in 10">
			<view class="">
				<text class="label">邀请返利</text>
				<text class="time">2023-11-23 10:23:34</text>
			</view>
			<text class="desc">+¥300.00</text>
		</view> -->
		<uni-empty></uni-empty>
	</view>
</template>

<script setup>
	import {
		onShow
	} from '@dcloudio/uni-app'
	onShow(async () => {
		const token = uni.getStorageSync('token')
		if(!token){
			uni.showModal({
				title:"提示",
				content:"检测到您还未登录，需要先去登录",
				showCancel:false,
				success: (ret) => {
					if(ret.confirm){
						uni.navigateTo({
							url:"/pages/login/login"
						})
					}
				}
			})
		}
		
	})
</script>

<style lang="scss" scoped>
	.list{
		padding: 0 32rpx;
		.item{
			width: 686rpx;
			height: 156rpx;
			border-bottom: 2rpx solid #F2F4FA;
			display: flex;
			align-items: center;
			justify-content: space-between;
			view{
					
				.label{
					color: #181D29;
					font-size: 32rpx;
					display: block;
				}
				.time{
					display: block;
					margin-top: 8rpx;
					font-size: 24rpx;
				}
			}
			.desc{
				color: #F53B47;
				font-size: 32rpx;
			}
		}
	}
	.header{
		width: 100%;
		height:384rpx ;
		position: relative;
		overflow: hidden;
	}
	.bg{
		display: block;
		width: 686rpx;
		height:384rpx ;
		position: absolute;
		left: 32rpx;
	}
	.title{
		color: #181D29;
		display: block;
		margin: 32rpx;
		font-weight: 500;
		font-size: 36rpx;
	}
	.content{
		position: relative;
		padding:0 64rpx;
		height: 148rpx;
		display: flex;
		// align-items: center;
		flex-direction: column;
		justify-content: center;
		// background: red;
	}
	.income{
		display: block;
		color: #fff;
		font-size: 24rpx;
		// margin:32rpx 0 15rpx 32rpx;
	}
	.income-power{
		color: #fff;
		font-size: 64rpx;
		font-weight: 700;
		display: block;
		// margin:0 0 15rpx 32rpx;
	}
</style>
